import { NgModule, ErrorHandler } from '@angular/core';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { ListPage } from '../pages/list/list';
import { ChapterPage } from '../pages/chapter/chapter';
import { ParentListPage } from './parentList.component';
import { GLAPI } from './GLAPI.service';
import { GLAPI_glweb2_JSON } from './GLAPI_glweb2';

@NgModule({
  declarations: [
    MyApp,
    ListPage,
    ChapterPage,
    ParentListPage
  ],
  imports: [
    IonicModule.forRoot(MyApp)
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    ListPage,
    ChapterPage,
    ParentListPage
  ],
  providers: [{provide: ErrorHandler, useClass: IonicErrorHandler}, {provide: GLAPI, useClass: GLAPI_glweb2_JSON}]
})
export class AppModule {}
